function callNaviteTest(p) {

    dsBridge.call("newPage", { 'page': 'wap/short.html' }, function (v) {
        console.log("原生", v);
        // Toastify({
        //     text: v,
        //     className: "info",
        //     style: {
        //         background: "linear-gradient(to right, #00b09b, #96c93d)",
        //     }
        // }).showToast();
    })
}

function callNaviteBack() {
    dsBridge.call("backPage", { msg: "js调用原生" }, function (v) {
        console.log("原生", v);
    })
}

function naviteNewPage(url, param) {
    var _params = {
        'page': url
    }
    if (param != undefined) {
        _params['param'] = param;
    }
    dsBridge.call("newPage", _params, function (v) {
        console.log("原生", v);
    })
}

function getParams(url) {
    const reg = /(\w+)=([^&]+)/g;
    const params = {};
    let match;
    while (match = reg.exec(url)) {
        params[match[1]] = match[2];
    }
    return params;
}